//
//  ProfessorTableViewCell.m
//  Toyohu
//
//  Created by Heige on 16/4/28.
//  Copyright © 2016年 celia. All rights reserved.
//

#import "ProfessorTableViewCell.h"
#import "ExpertDetailsSimilarityExpert.h"
#import <UIImageView+WebCache.h>
@implementation ProfessorTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(ExpertDetailsSimilarityExpert *)model
{
    _model = model;
    _professorImg.layer.cornerRadius = _professorImg.frame.size.height/2;
    _professorImg.clipsToBounds = YES;
    [_professorImg sd_setImageWithURL:[NSURL URLWithString:model.eHeadUrl]];
    _title.text = model.eDiscussion;
    _sketch.text = model.eAppellation;
    _sketch.layer.cornerRadius = _sketch.layer.frame.size.height/2;
    _sketch.clipsToBounds = YES;
    _sketch.layer.borderColor = [UIColor colorWithRed:177/255.0 green:177/255.0 blue:177/255.0 alpha:1].CGColor;
    _sketch.layer.borderWidth = 2;
    _name.text = model.eName;
    _fens.text = [NSString stringWithFormat:@"%.f",model.eConsultancyNum];
}

@end
